package com.hqyj.freemovie.front.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hqyj.freemovie.front.domain.Movie;
import com.hqyj.freemovie.front.view.MovieView;

import java.util.List;

public interface MovieService {

    public List<Movie> queryMovieListByType(String type);

    public Page<Movie> queryMoviePagerByType(String type, Integer currentPageNumber);

    //把所有的电影资料导入到Elasticsearch中
    public boolean initElasticsearchMoviesLiberay() throws Exception;

    public org.springframework.data.domain.Page<MovieView> elasticsearchMoviesByKeyword(String keyword, Integer currentPageNumber);
}
